package com.group.controller;

import com.group.bean.BuildGroupInfoReq;
import com.group.bean.ResponseMessage;
import com.group.service.impl.GroupServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 
 * @author user
 *
 */
@Controller
@RequestMapping("/api/v1/group")
public class GroupController {

	@Autowired
	private GroupServiceImpl groupServiceImpl;
	
	@PostMapping("/buildGroup")
	public ResponseMessage buildGroup(@RequestBody BuildGroupInfoReq buildGroupInfoReq) {
		return groupServiceImpl.buildGroup(buildGroupInfoReq);	
	}
}
